package cn.roderick;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * Web程序启动类
 * @author roderick
 * @date 2017-08-24 11:29
 */
public class WebServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(WebServletInitializer.class);
    }
	
//	public static void main(String[] args) {
//        SpringApplication.run(applicationClass, args);
//    }
	
    private static Class<WebApplication> applicationClass = WebApplication.class;
}
